package com.example.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @auter czcjq
 * @date 2022/5/16 16:14
 */
@Controller
public class IndexComtroller {
    @RequestMapping("/")
    public String indexAndView() {
        return "/pagehome/index";
    }

    @RequestMapping("/loginView")
    public String loginView() {
        return "/pagehome/login";
    }

    @RequestMapping("/registerView")
    public String registerView() {
        return "pagehome/register";
    }

    @RequestMapping("/loginsuccess")
    public String loginsuccess() {
        return "pagehome/loginsuccess";
    }
}
